﻿<Window x:Class="TriPhoto.ExifMetaData"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:pd="clr-namespace:TriPhoto"
    xmlns:properties="clr-namespace:TriPhoto.Properties"
    Title="Exif" Height="495" Width="292" WindowStyle="ToolWindow" ResizeMode="NoResize">
    <Window.Resources>
        <!-- Headers for metadata properties -->
        <Style x:Key="MetadataHeader" TargetType="{x:Type Label}">
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5" >
                        <LinearGradientBrush.GradientStops>
                            <GradientStop Offset="0.5" Color="{x:Static SystemColors.AppWorkspaceColor}" />
                            <GradientStop Offset="2" Color="Transparent" />
                        </LinearGradientBrush.GradientStops>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Foreground" Value="White" />
            <Setter Property="FontWeight" Value="Bold" />
        </Style>

        <LinearGradientBrush x:Key="WindowGradient" StartPoint="0,0.3" EndPoint="1,0">
            <LinearGradientBrush.GradientStops>
                <GradientStop Color="#B2B6CAFF" Offset="0" />
                <GradientStop Color="#BFC3D5FF" Offset="0.1" />
                <GradientStop Color="#E0E4F0FF" Offset="0.3" />
                <GradientStop Color="#E6EAF5FF" Offset="0.5" />
                <GradientStop Color="#CFD7E2FF" Offset="0.6" />
                <GradientStop Color="#BFC5D3FF" Offset="0.8" />
                <GradientStop Color="#C4CBD8FF" Offset="1" />
            </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>
    
        <Style TargetType="{x:Type pd:ExifMetaData}">
            <Setter Property="Background" Value="{DynamicResource WindowGradient}" />
        </Style>

    </Window.Resources>
        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
            <StackPanel>
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.Size}"/>
                <Label Name="WithHeightLabel" />           
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.DateImageTaken}" />
                <Label Name="DateLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.CameraModel}"/>
                <Label Name="CameraLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.CreationSoftware}"/>
                <Label Name="CreationSoftLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.LensAperture}"/>
                <Label Name="OuvertureLentilleLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.FocalLength}"/>
                <Label Name="DistanceFocalLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.ISOSpeed}"/>
                <Label Name="VitesseLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.ExposureTime}"/>
                <Label Name="TempsExpositionLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.ExposureMode}"/>
                <Label Name="ModeLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.ExposureCompensation}"/>
                <Label Name="ExpositionCompensationLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.WhiteBalanceMode}"/>
                <Label Name="BalanceBlancLabel" />
                <Label Style="{StaticResource MetadataHeader}" Content="{x:Static properties:Resources.ColorRepresentation}"/>
                <Label Name="ColorLabel" />
            </StackPanel>
        </ScrollViewer>

</Window>
